package com.tsunami.message.config.mq;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * mqtt配置参数类
 *
 * @author lx
 * @since 2024-09-20
 */
@Data
@Component
@ConfigurationProperties(prefix = "mqtt")
public class MqttConfigBuilder {
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 连接地址
     */
    private String[] uris;
    /**
     * 客户ID
     */
    private String clientId;
    /**
     * 默认连接主题
     */
    private String[] topics;
    /**
     * 超时时间
     */
    private int timeout;
    /**
     * 保持连接数
     */
    private int keepalive;
    /**
     * qos
     */
    private Integer qos;

}
